from ronglian_sms_sdk import SmsSDK
accId = '8aaf07087bc82708017bf7c529b60e61'
accToken = '190700098dc643a08ff87f2953a5b80c'
appId = '8aaf07087bc82708017bf7c52a9a0e68'
import json
def send_message(mobile,code,time):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    datas = (code, time)
    resp = sdk.sendMessage(tid, mobile, datas)
    result = json.loads(resp)
    if result['statusCode'] == '000000':
        return True
    return False

